﻿using System;

namespace Program27
{
    class Program
    {
        static void Main(string[] args)
        {
            double kane = 8000;
            Console.WriteLine("去双流机场前:" + kane);
            Change(ref kane);
            Console.WriteLine("去双流机场后:"+ kane);

            float f1 = 1.5f;
            float f2 = 2.7f;
            Console.WriteLine(f1 + "," + f2);
            Swap(ref f1,ref f2);
            Console.WriteLine(f1 + "," + f2);
        }
        public static void Change(ref double s) 
        {
            s -= 8000;
        }
        public static void Swap(ref float x,ref float y) 
        {
            float i = 0;
            i = x;
             x = y;
            y = i;   
        }
        
    }
}
